﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/ThreeColumn.master"
    AutoEventWireup="true" CodeBehind="OrderTracking.aspx.cs" Inherits="NopSolutions.NopCommerce.Web.OrderTracking" %>

<%@ Register TagPrefix="nopCommerce" TagName="CaptionTextBox" Src="~/Modules/CaptionTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="NumericTextBox" Src="~/Modules/NumericTextBox.ascx" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cph1" runat="server">
<div class="contact-form">
    <div class="page-title">Отслеживание заказа</div>
    
    <asp:Panel ID="pnlTrackingParams" runat="server">
        <table width="200px">
            <tr>
                <td>
                    <nopCommerce:CaptionTextBox runat="server" ID="tbOrderNumber" Caption="Номер заказа" 
                        ValidationGroup="" ErrorMessage="Необходимо указать номер заказа" 
                        CssEditClass="reg_textbox" CssContainerClass="contactus-table-container" >
                    </nopCommerce:CaptionTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <nopCommerce:CaptionTextBox runat="server" ID="tbEmail" Caption="E-mail" 
                        ValidationGroup="" ErrorMessage="Необходимо указать e-mail" 
                        CssEditClass="reg_textbox" CssContainerClass="contactus-table-container" 
                        IsEmail="True">
                    </nopCommerce:CaptionTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnRequest" runat="server"
                        onclick="btnRequest_Click" CssClass="passwordrecoverybutton"/>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="pnlTrackingInfo" runat="server">
        <asp:Label ID="lbInfo" runat="server" Text=""></asp:Label><br /><br />
        <asp:GridView ID="gvOrderNotes" runat="server" AutoGenerateColumns="False"
                            Width="100%">
                            <Columns>
                                <asp:TemplateField HeaderText="Дата"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <%#DateTimeHelper.ConvertToUserTime((DateTime)Eval("CreatedOn"), DateTimeKind.Utc).ToString()%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Примечание"
                                    ItemStyle-Width="60%">
                                    <ItemTemplate>
                                        <div style="padding-left: 10px; padding-right: 10px; text-align: left;">
                                            <%# ((OrderNote)Container.DataItem).FormatOrderNoteText() %>
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
    </asp:Panel>
</div>
</asp:Content>
